<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-22 01:15:42
 * @Last Modified by:   Wang Chunsheng 2192138785@qq.com
 * @Last Modified time: 2020-03-27 21:07:53
 */


namespace common\addons\diandi_shop\api;

use Yii;
use api\controllers\AController;

/**
 * Class HelpController
 */
class HelpController extends AController
{
    public $modelClass = '\common\models\DdGoods';
    protected $authOptional = ['detail', 'lists'];
    public function actionSearch()
    {
        return [
            'error_code'    => 20,
            'res_msg'       => 'ok',
        ];
    }

    /**
     * @SWG\Post(path="/diandi_shop/help/detail",
     *     tags={"帮助中心"},
     *     summary="Retrieves the collection of Goods resources.",
     *     @SWG\Response(
     *         response = 200,
     *         description = "Goods collection response",
     *     ),
     *     @SWG\Parameter(
   *     in="formData",
   *     name="reason && ninini",
   *     type="string",
   *     description="需要的字段",
   *     required=true,
   *   ),
     * )
     */
    public function actionDetail()
    {
        return 43;
    }
    /**
     * @SWG\Get(path="/diandi_shop/help/lists",
     *     tags={"帮助中心"},
     *     summary="Retrieves the collection of Goods resources.",
     *     @SWG\Response(
     *         response = 200,
     *         description = "Goods collection response",
     *     ),
     *     @SWG\Parameter(
       *     in="query",
       *     name="reason && ninini",
       *     type="string",
       *     description="需要的字段",
       *     required=true,
       *   ),
     * )
     */
    public function actionLists()
    {
        return [];
    }
}
